Electronic device

ABSTRACT

An electronic device according to the present invention, includes at least one memory and at least one processor which function as: an acquisition unit configured to acquire a first line-of-sight information and a second line-of-sight information generated by mutually different statistical methods as line-of-sight information relating to a line of sight of a user looking at a display surface; and a processing unit configured to perform first processing on a basis of the first line-of-sight information and second processing different from the first processing on a basis of the second line-of-sight information.

BACKGROUND OF THE INVENTION Field of the Invention

The present invention relates to an electronic device capable ofacquiring line-of-sight information relating to user's lines of sight.

Description of the Related Art

Japanese Patent Application Laid-open No. 2015-22208 discloses a methodof selecting a focus point based on a detected line of sight of a user(photographer) looking into the view field of a viewfinder. The imagingapparatus disclosed in Japanese Patent Application Laid-open No.2015-22208 allows selection of a focus point in accordance with thedegree of priority given to each of a plurality of focus point selectionmethods so that the focus point can be selected as intended by the user.The imaging apparatus disclosed in Japanese Patent Application Laid-openNo. 2015-22208 includes a viewfinder known as an optical finder thatallows the user to view an optical image formed on a focusing screen.

Meanwhile, there have been imaging apparatuses having an electronicviewfinder instead of the optical finder in recent years. An electronicviewfinder is a display apparatus that reproduces images acquired by animage sensor that receives light beams passing through a photographingoptical system. While an imaging apparatus with an optical finderincludes a beam splitter, an imaging apparatus with an electronicviewfinder does not need a beam splitter and therefore is able to detecta focus or an object in a wider area within the shooting range.

Sometimes, however, in the existing imaging apparatus capable ofdetecting the user's line of sight (gaze position) and equipped with anelectronic viewfinder, the process based on the detection result of theline of sight may not be performed favorably.

For example, as opposed to the display in an optical finder, in thedisplay in an electronic viewfinder, processing that is implemented tothe signal acquired by the image sensor is changed, and the delay timeuntil an image is displayed (display lag time) may be varied. Also, theinterval of updating the displayed image (display update interval) maybe varied. Accordingly, the user views the image, in which display lagtime and display update interval are varied.

This may obstruct the user from aligning the gaze position preciselywith the position the user wishes to view, or may cause the user to takemore time to align the gaze position. This in turn leads to a failure indetecting the point the user aims to look at as the gaze position,hence, the process based on the detection result is not performedfavorably. More specifically, the user's intended position may not bedisplayed as the gaze position, or the user's intended position may notbe selected as a focus point.

By lengthening the period of detecting the gaze position or bybroadening the area output as the detection result of the gaze position,the point the user aims to look at can be detected as the gaze position.However, the process that requires instantaneity such as selection of afocus point cannot be performed favorably. If consideration (priority)is given to the process instantaneity, the display quality of the gazeposition is lowered.

SUMMARY OF THE INVENTION

The present invention provides a technique that enables processing to beperformed favorably based on results of line-of-sight detection.

An electronic device according to the present invention, includes atleast one memory and at least one processor which function as: anacquisition unit configured to acquire a first line-of-sight informationand a second line-of-sight information generated by mutually differentstatistical methods as line-of-sight information relating to a line ofsight of a user looking at a display surface; and a processing unitconfigured to perform first processing on a basis of the firstline-of-sight information and second processing different from the firstprocessing on a basis of the second line-of-sight information.

Further features of the present invention will become apparent from thefollowing description of exemplary embodiments with reference to theattached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram illustrating a configuration example of animaging apparatus according to the embodiment;

FIG. 2A and FIG. 2B are diagrams illustrating an example ofcorrespondence between an exit pupil and an opto-electronic conversionunit of an imaging apparatus according to the embodiment;

FIG. 3A and FIG. 3B are diagrams illustrating a configuration example ofa line-of-sight detection unit according to the embodiment;

FIG. 4 is a flowchart illustrating an example of a shooting processaccording to the embodiment;

FIG. 5 is a flowchart of a shooting sub-routine according to theembodiment;

FIG. 6 is a flowchart of a process of making adjustments inline-of-sight detection according to the embodiment;

FIG. 7A and FIG. 7B are diagrams for explaining the reasons why theplurality of processing steps according to the embodiment are performed;

FIG. 8A and FIG. 8B are diagrams for explaining the reasons why theprocessing according to the embodiment is performed;

FIG. 9 is a timing chart of live view display and other processesaccording to the embodiment;

FIG. 10 is a timing chart of live view display and other processesaccording to the embodiment:

FIG. 11 is a timing chart of live view display and other processesaccording to the embodiment; and

FIG. 12A and FIG. 12B are timing charts of live view display and otherprocesses according to the embodiment.

DESCRIPTION OF THE EMBODIMENTS

The present invention will be hereinafter described in detail based onits illustrative embodiments with reference to the accompanyingdrawings. The following embodiments shall not limit the presentinvention. While a plurality of features are described below, it doesnot mean that all of them are essential for the present invention. Theplurality of features described below may be combined in any way. Sameor similar constituent elements in the accompanying drawings are giventhe same reference numerals to omit repetitive description.

The following embodiments will be described in relation to a case wherethe present invention is applied to an imaging apparatus (specifically,a lens-changeable digital camera). However, the present invention isapplicable to any electronic device to which a line-of-sight informationacquisition function (function that acquires line-of-sight informationrelating to a line of sight of a user) can be installed. Such electronicdevice includes a video camera, computer equipment (personal computer,tablet computer, media player, PDA, etc.), mobile phone, smartphone,game machine, robot, drone, drive recorder, and so on. These are onlyexamples and the present invention can be applied to other electronicdevices. While the digital camera described below includes aline-of-sight detection function, imaging function, display function,etc., the present invention is also applicable to a configuration thathas these functions separately installed on several mutuallycommunicable devices (e.g., a main machine and a remote controller).

[Configuration]

FIG. 1 is a block diagram illustrating a configuration example of adigital camera system as one example of electronic device according tothe embodiment of the present invention. The digital camera systemincludes a main body 100 of a lens-changeable digital camera, and a lensunit 150 removably attached to the main body 100. The lens changeabilityis not essential for the present invention.

The lens unit 150 includes a communication terminal 6 that makes contactwith a communication terminal 10 provided to the main body 100 whenattached to the main body 100. Power is supplied from the main body 100to the lens unit 150 via the communication terminal 10 and communicationterminal 6. A lens system control circuit 4 of the lens unit 150 and asystem control unit 50 of the main body 100 are mutually communicablevia the communication terminal 10 and communication terminal 6.

The lens unit 150 includes a lens assembly 103 that is an imagingoptical system composed of a plurality of lenses including a movablelens. The movable lens at least includes a focus lens. Depending on thelens unit 150, one or more of a zoom lens, a blur correction lens, andso on, can further be included. An AF drive circuit 3 includes a motor,an actuator and the like for driving the focus lens. The focus lens isdriven by the lens system control circuit 4 controlling the AF drivecircuit 3. A diaphragm drive circuit 2 includes a motor actuator and thelike for driving a diaphragm 102. The aperture size of the diaphragm 102is adjusted by the lens system control circuit 4 controlling thediaphragm drive circuit 2.

A mechanical shutter 101 is driven by the system control unit 50 toadjust the exposure time of an image sensor 22. The mechanical shutter101 is kept fully open when shooting a movie.

The image sensor 22 is a CCD image sensor or a CMOS image sensor, forexample. The image sensor 22 includes two-dimensionally arrangedmultiple pixels, each pixel being provided with one micro lens, onecolor filter, and one or more opto-electronic conversion units. In thisembodiment, each pixel includes a plurality of opto-electronicconversion units and each pixel is configured to be able to output asignal from each of the opto-electronic conversion units. The pixelsconfigured this way enable generation of image signals for capturedimages, stereoscopic image pairs, and phase-difference AF, from signalsread out from the image sensor 22.

FIG. 2A is a schematic diagram illustrating the correspondence betweenan exit pupil of the lens unit 150 and each of opto-electronicconversion units when each pixel of the image sensor 22 has twoopto-electronic conversion units.

The two opto-electronic conversion units 201 a and 201 b provided to thepixel share one color filter 252 and one micro lens 251. Light that haspassed through a partial region 253 a and a partial region 253 b of theemission exit (region 253) enters the opto-electronic conversion unit201 a and the opto-electronic conversion unit 201 b, respectively.

Therefore, a pair of stereoscopic images are formed by imagesrespectively formed by signals read out from the opto-electronicconversion units 201 a and opts-electronic conversion units 201 b of thepixels included in a given pixel area. The stereoscopic image pair canbe used as image signals (A image signal and B image signal) forphase-difference AF. Further, a normal image signal (captured image) canbe obtained by adding signals respectively read out from theopto-electronic conversion units 201 a and opto-electronic conversionunits 201 b of each pixel.

In this embodiment, each pixel of the image sensor 22 functions both asthe pixel for generating a signal for phase-difference AF (focusdetection pixel) and the pixel for generating a normal image signal(imaging pixel). Optionally, some of the pixels of the image sensor 22may be configured as the focus detection pixels, and the other pixelsmay be configured as imaging pixels. FIG. 2B illustrates an example ofcorrespondence between a focus detection pixel and a region 253 of theexit pupil through which the incident light passes. The opto-electronicconversion unit 201 of the focus detection pixel illustrated in FIG. 2Bfunctions similarly to the opto-electronic conversion unit 201 b of FIG.2A with the use of the aperture 254. It is practically possible to set afocus detection area of any size anywhere by distributing the focusdetection pixel illustrated in FIG. 2B, and another type of focusdetection pixel that functions similarly to the opto-electronicconversion unit 201 a of FIG. 2A over the entire image sensor 22.

While the configuration illustrated in FIG. 2A and FIG. 2B is that of animage sensor for obtaining images to be recorded, which is used as thesensor for phase-difference AF, the present invention can he embodiedfor any other types of AF, such as for autofocusing that allows settingof a focus detection area of any size and location. For example, thepresent invention is applicable also to a configuration that usescontrast AF. In the case of using only the contrast AF, each pixel hasonly one opto-electronic conversion unit.

Referring back to FIG. 1, an A/D converter 23 is used for converting ananalog image signal output from the image sensor 22 into a digital imagesignal (image data). The A/D converter 23 may be included in the imagesensor 22.

The image data (RAW image data) output by the A/D converter 23 isprocessed as required at an image processing unit 24, and stored in amemory 32, via a memory control unit 15. The memory 32 is used as abuffer memory for storing image data or audio data temporarily, or as avideo memory for a display unit 28.

The image processing unit 24 applies predetermined image processing tothe image data to generate a signal or image data, or acquire and/orgenerate various pieces of information. The image processing unit 24 maybe a dedicated hardware circuit such as an ASIC designed to realizespecific functions, for example, or a configuration with a processorsuch as a DSP executing software to realize specific functions.

The image processing the image processing unit 24 applies here includespre-processing, color interpolation, correction, detection, dataprocessing, evaluation value calculation, and so on. Pre-processingincludes signal amplification, reference level adjustment, defect pixelcorrection, and so on. Color interpolation is a process of interpolatingthe values of color components not contained in the image data and alsocalled demosaicing. Correction includes white balance adjustment,correction of luminance of the image, correction of optical aberrationsof the lens unit 150, color calibration, and so on. Detection includesdetection and tracking of a characteristic area (e.g., face area, humanbody area), identification of a person, and so on. Data processingincludes scaling, encoding, decoding, header information generation, andso on. Evaluation value calculation includes calculation of evaluationvalues of pairs of image signals for phase-difference AF, or forcontrast AF, evaluation values used for automatic exposure control, andso on. These are examples of image processing the image processing unit24 can carry out, and should not be understood as limiting the imageprocessing carried out by the image processing unit 24. The evaluationvalue calculation may be performed by the system control unit 50.

A D/A converter 19 generates an analog signal suited to display at thedisplay unit 28 from the image data for display stored in the memory 32,and supplies the generated analog signal to the display unit 28. Thedisplay unit 28 includes a liquid crystal display apparatus, forexample, and executes display on the basis of the analog signal from theD/A converter 19 on a display surface.

Shooting a movie (imaging control) while displaying the footage (displaycontrol) continuously allows the display unit 28 to function as anelectronic view finder (EVF). The movie displayed to cause the displayunit 28 to function as an EVF is called a live view image. The displayunit 28 may be provided inside the main body 100 to be viewed through aneyepiece, or may be provided on a housing surface of the main body 100to be viewable without an eyepiece. The display unit 28 may be providedto both of inside the main body 100 and on the housing surface.

The system control unit 50 is a CPU (also called MPU or microprocessor),for example. The system control unit 50 controls the operations of themain body 100 and the lens unit 150 by reading a program stored in anon-volatile memory 56 into a system memory 52 and executing the programto realize the functions of the camera system. The system control unit50 sends various commands to the lens system control circuit 4 viacommunication through the communication terminals 10 and 6 to controlthe operation of the lens unit 150.

The non-volatile memory 56 stores the program executed by the systemcontrol unit 50, various setting values of the camera system, image dataof a GUI (Graphical User Interface), and so on. The system memory 52 isa main memory the system control unit 50 uses when executing a program.The data (information) stored in the non-volatile memory 56 may bere-writable.

The system control unit 50, as one of the operations it performs,carries out an automatic exposure control (AE) process based on anevaluation value generated by the image processing unit 24 or itself, todetermine a shooting condition. The shooting conditions for capturing astill image are the shutter speed, aperture value, and sensitivity, forexample. The system control unit 50 determines one or more of Me shutterspeed, aperture value, and sensitivity in accordance with an AE modethat has been set. The system control unit 50 controls the aperturevalue (aperture size) of the diaphragm mechanism in the lens unit 150.The system control unit 50 also controls the operation of the mechanicalshutter 101.

The system control unit 50 drives the focus lens of the lens unit 150 onthe basis of an evaluation value or an amount of defocus generated bythe image processing unit 24 or itself, to perform autofocus detection(AF) causing the lens assembly 103 to focus on an object within a focusdetection area.

A system timer 53 is a built-in clock and used by the system controlunit 50.

An operation unit 70 includes a plurality of input devices (button,switch, dial, and so on) the user can operate. Some of the input devicesof the operation unit 70 have a name corresponding to the assignedfunction. While a shutter button 61, a mode change switch 60, a powerswitch 72 are illustrated separately from the operation unit 70 forconvenience, these are included in the operation unit 70. When thedisplay unit 28 is a touch display including a touchscreen, thetouchscreen is also included in the operation unit 70. Operations of theinput devices included in the operation unit 70 are monitored by thesystem control unit 50. When the system control unit 50 detects anoperation of an input device, the system control unit 50 executesprocessing in accordance with the detected operation,

The shutter button 61 includes a first shutter switch 62 that turns onand outputs a signal SW1 when half-pressed, and a second shutter switch64 that turns on and outputs a signal SW2 when fully pressed. When thesystem control unit 50 detects the signal SW1 (first shutter switch 62ON), the system control unit executes a preparatory operation forshooting a still image. The preparatory operation includes the AEprocess and. AF process. When the system control unit 50 detects thesignal SW2 (second shutter switch 64 ON), the system control unitexecutes shooting of a still image (imaging and recording operations) inaccordance with the shooting condition determined by the AE process.

The operation unit 70 of this embodiment includes a line-of-sightdetection unit 701 that detects the line of sight (direction of line ofsight) of a user and outputs the detection results (line-of-sightinformation regarding the user's line of sight). The system control unit50 can execute various control processes in accordance with theline-of-sight information provided by the line-of-sight detection unit701. Although the line-of-sight detection unit 701 is not a componentdirectly operated by the user, it is included in the operation unit 70because the line of sight detected by the line-of-sight detection unit701 is dealt with as an input.

FIG. 3A is a schematic side view illustrating a configuration example ofthe line-of-sight detection unit 701 inside a finder. The line-of-sightdetection unit 701 detects the rotation angle of the optical axis of theeyeball 501 a of a user who is looking at the display unit 28 providedinside the main body 100 through the eyepiece of the finder. Theline-of-sight detection unit is able to locate the position in thedisplay unit 28 the user is gazing at (point of gaze in the displayedimage) based on the detected direction of line of sight.

The display unit 28 displays a live view image, for example, and theuser peering in through the window of the eyepiece can observe thedisplayed contents of the display unit 28 through an eye lens 701 d anda dichroic mirror 701 c. A light source 701 e can emit infrared lighttoward the direction of the eyepiece window (toward outside of the mainbody 100). When the user is peering into the finder, the infrared lightemitted by the light source 701 e is reflected by the eyeball 501 a andreturns into the finder. The infrared light incident in the finder isreflected toward a light-receiving lens 701 b by the dichroic mirror 701c.

The light-receiving lens 701 b forms an infrared image of the eyeball onthe imaging plane of an image sensor 701 a. The image sensor 701 a is atwo-dimensional imaging device having a filter for the infrared imaging.The image sensor 701 a for the line-of-sight detection may have a fewernumber of pixels than that of the image sensor 22 for shooting. Theeyeball image captured by the image sensor 701 a is sent to the systemcontrol unit 50. The system control unit 50 locates the positions of theretinal reflection of infrared light and the pupil in the eyeball imageand detects the line-of-sight direction from the positional relationshipbetween them. The system control unit 50 locates the position in thedisplay unit 28 the user is gazing at (point of gaze in the displayedimage) based on the detected line-of-sight direction. Alternatively, thepositions of the retinal reflection and the pupil in the eyeball imagemay be located by the image processing unit 24, and the system controlunit 50 may obtain their locations from the image processing unit 24.

The present invention does not depend on the method of detecting theline of sight or the configuration of the line-of-sight detection unit.The configuration of the line-of-sight detection unit 701 is not limitedto the one illustrated in FIG. 3A. For example, as illustrated in FIG.3B, the line of sight may be detected based on an image captured by acamera 701 f disposed near the display unit 28 on the back side of themain body 100. The angle of view of the camera 701 f indicated withbroken lines is determined such that the face of a user shooting whilelooking at the display unit 28 is captured. The line-of-sight directioncan be detected based on an image of an eye area (area including atleast one of the eyeball 501 a and the eyeball 501 b) that is located inan image captured by the camera 701 f. In the case of using infraredimage sensory, a light source 701 e may be disposed near the camera 701f to capture the image of an object inside the angle of view whileprojecting infrared light. In this case, the method of detecting theline-of-sight direction from the obtained image may be similar to thatof FIG. 3A. In the case of using visible light image sensory, no lightneed to be projected. When using visible light images, the line-of-sightdirection can be detected from the positional relationship between theinner corner of the eye and the iris in the eye area.

Referring back to FIG. 1, a power supply control unit 80 is composed ofa battery detection circuit, a DC-DC converter, a switch circuit thatswitches the blocks to be powered, and so on, and detects the presenceor absence of a battery being mounted, the type of battery, andremaining battery charge. The power supply control unit 80 controls theDC-DC converter on the basis of the detection results and instructionsfrom the system control unit 50, and supplies a necessary voltage tovarious units including a recording medium 200 for a necessary period oftime.

A power supply unit 30 includes a battery, an AC adapter, and so on AnI/F 18 is an interface for the recording medium 200 such as a memorycard, a hard disk, and so on. Data files such as captured images andaudio are recorded in the recording medium 200. The data files recordedin the recording medium 200 are read out through the I/F 18, and can beplayed back via the image processing unit 24 and the system control unit50.

A communication unit 54 realizes communication with an external deviceby at least one of wireless communication and wired communication.Images captured by the image sensor 22 (captured images, including liveview images), and images recorded in the recording medium 200 can besent to the external device via the communication unit 54. Image dataand various other pieces of information can be received from an externaldevice via the communication unit 54.

An orientation detection unit 55 detects the orientation of the mainbody 100 relative to the direction of gravity. The orientation detectionunit 55 may be an angular velocity sensor, or an angular velocitysensor. The system control unit 50 can record orientation information inaccordance with the orientation detected by the orientation detectionunit 55 during shooting in the data file in which the image dataobtained by the shooting is stored. The orientation information can beused, for example, for displaying the recorded image in the sameorientation as when it was captured.

The main body 100 of this embodiment can carry out various controlprocesses to make a characteristic area detected by the image processingunit 24 an appropriate image. For example, the main body 100 can carryout autofocus detection (AF) for causing the characteristic area to comeinto focus, and automatic exposure control (AE) for giving a correctexposure to the characteristic area. The main body 100 can also carryout automatic white balance for setting a correct white balance for thecharacteristic area, and automatic flash adjustment for regulating theamount of light to achieve a correct brightness for the characteristicarea. Control processes to correctly display the characteristic area arenot limited to these. The image processing unit 24 applies a knownmethod to a live view image, for example, detects areas determined tocomply with the definition of a predetermined characteristic ascharacteristic areas, and outputs information such as the position,size, and credibility of each characteristic area to the system controlunit 50. The present invention does not depend on the type of thecharacteristic area or the method of detecting the characteristic area.Since a known method can be used to detect characteristic areas, thedescription of the method of detecting characteristic areas is omitted.

Feature areas can also be used for detecting object information. Whenthe characteristic area is a face area, for example, whether the red-eyeeffect is appearing, whether the eyes are closed, or expressions (e.g.,smile) are detected as object information. The object information is notlimited to these.

This embodiment allows for selection of one characteristic area (mainobject area) that is to be used for various control processes or forobtaining object information, using the line of sight of the user, froma plurality of characteristic areas that are for example multiple imageareas of varying sizes and positions. A user's act of directing the lineof sight such as to be detected by the line-of-sight detection unit 701can he called an input of line of sight.

[Operation]

A shooting process performed in the main body 100 is described belowwith reference to FIG. 4. FIG. 4 is a flowchart of the shooting processaccording to the embodiment. The process of FIG. 4 is started uponstart-up of the main body 100 in a shooting mode, or upon setting of ashooting mode as the mode of the main body 100.

At step S1, the system control unit 50 starts driving the image sensor22, to initiate acquisition of imaging data (image). Images having asufficient resolution at least for one of focus detection, objectdetection, and live view display are successively obtained. Since thedriving operation here is performed for shooting a movie for live viewdisplay, images are taken using a process known as an electronic shutteroperation in which charge is accumulated for a time in accordance with alive view frame rate each time imaging data is read out. Live viewdisplay is a display method that allows the display unit 28 to functionas an electronic view finder (EVF), which shows an object substantiallyin real time. The live view is displayed for example for the user(photographer) to check the shooting range or shooting conditions. Theframe rate for live view display is 30 frames/s (imaging interval of33.3 ms) or 60 frames/s (imaging interval of 16.6 ms), for example.

At step S2, the system control unit 50 starts a process of acquiringfocus detection data and captured image data from the current imagingdata. The focus detection data includes data of a first image and asecond image that are a pair of stereoscopic images in a focus detectionarea. For example, the data of pixels that form the first image andsecond image is respectively obtained from the opto-electronicconversion units 201 a and 201 b of FIG. 2A. Captured image data is thedata of the captured image, which is obtained by adding up the data ofthe first image and second image, and applying color interpolation andthe like by the image processing unit 24. This way, focus detection dataand captured image data can be acquired in one shooting. In the casewhere the focus detection pixels and imaging pixels are configured asdifferent pixels, the captured image data is acquired by aninterpolation process or the like for obtaining pixel values at thepositions of the focus detection pixels.

At step S3, the system control unit 50 starts a live view displayprocess, in the live view display process, the system control unit 50generates an image for live view display from the current captured image(captured image data), using the image processing unit 24, and displaysthe generated image in an image display area of the display unit 28. Theimage display area is one of the entire area of the display surface ofthe display unit 28, the entire area of a screen (such as a window)presented in the display unit 28, and some area of the display surfaceor the screen. The image for live view display may be an image reducedin accordance with the resolution of the display unit 28, for example.The image processing unit 24 can perform a reduction process whengenerating the captured image, in this case, the system control unit 50displays the generated captured image (image after the reductionprocess) in the display unit 28. As described above, the live viewdisplay that shows the object substantially in real time allows the userto adjust the composition or exposure conditions during the shootingwith ease while checking the live view display. Moreover, in thisembodiment, the main body 100 is capable of detecting an object such asthe face of a person or an animal from the captured image. Accordingly,a frame or the like indicating the area of the object being detected canalso be shown in the live view display.

At step S4, the system control unit 50 starts line-of-sight detectionand focus detection. In line-of-sight detection, the line-of-sightdetection unit 701 acquires line-of-sight information that indicates theline-of-sight position (user's gaze position) on the display surface ofthe display unit 28 at a predetermined time interval in association withthe captured image the user was looking at. At step S4, the systemcontrol unit 50 also starts display of a predetermined item (such as acircle) at the gaze position on the display surface of the display unit28 in order to notify the user of the detected gaze position. Focusdetection will be described later.

At step S5, the system control unit 50 determines whether or not thesignal SW1 (first shutter switch 62 ON; instruction to get set forshooting; half-pressed state of the shutter button 61) has beendetected. The system control unit 50 advances the process to step S6 ifit determines that the signal SW1 has been detected, and advances theprocess to step S11 if it determines that the signal SW1 has not beendetected.

At step S6, the system control unit 50 sets a focus detection area, andcarries out focus detection that was started at step S4. Here, thesystem control unit 50 sets a focus detection area based on the resultsof line-of-sight detection started at step S4 (successively detectedlines of sight). The detected gaze positions contain errors due tovarious reasons relative to the user's intended position of the object.In this embodiment, statistical methods of processing the detected gazeposition (line-of-sight information), or controlling the, line-of-sightdetection timing (timing at which the gaze position is detected) arechanged in accordance with the situation so that more precise (morefavorable) line-of-sight information is acquired. More details will begiven later. The post-process line-of-sight information (after the gazeposition has been processed or after the line-of-sight detection timinghas been controlled) may be acquired from outside. At step S6, the focusdetection area is set, with the use of this post-process line-of-sightinformation. At this step, the gaze position may be aligned with thecenter of the focus detection area, or not. When there are pluralcandidates for focus detection area such as areas around detectedobjects, the area around one of the plurality of detected objectsclosest to the gaze position (including the gaze position) may be linkedto the gaze position and set as the focus detection area. The systemcontrol unit 50 detects a focus position (focus point) where the imageis in focus in the focus detection area. From the step S6 onwards, focusdetection using the line-of-sight information (including the setting ofa focus detection area) is repeatedly carried out. The method of settinga focus detection area before the acquisition of line-of-sightinformation is not limited to a particular one. For example, an area ofan object selected by the user as the user wishes may be set as thefocus detection area.

In focus detection, an image displacement (phase difference) between thefirst image and the second image that are the pair of stereoscopicimages in the focus detection area is calculated, and a defocus amount(vector including magnitude and direction) in the focus detection areais calculated from the image displacement. The focus detection isexplained in more specific terms below.

First, the system control unit 50 applies shading correction to thefirst image and second image to reduce the difference in light amount(difference in brightness) between the first image and the second image.After the shading correction the system control unit 50 applies afiltering process to the first image and second image to extract aspatial frequency image (data) for the detection of a phase difference.

After the filtering process, the system control unit 50 next performs ashifting process of relatively shifting the first image and second imagein a pupil splitting direction to calculate a correlation value thatindicates the matching degree of the first image and second image.

The correlation value COR(s1) can be calculated using the followingformula 1, where A(k) represents data of a k-th pixel of the first imageafter the filtering process, B(k) represents data of a k-th pixel of thesecond image after the filtering process, W represents an area of numberk corresponding to a focus detection area, s1 represents an amount ofshift in the shifting process, and Γ1 represents an area of the amountof shift s1 (shifting area).

[Math. 1]

COR(s1)=_(k∈W) |A(k)-B(k-s1)|s1 ∈Γ1   (Formula 1)

First, the shifting process with an amount of shift s1 matches dataB(k-s1) of a (k-s1)th pixel of the second image after the filteringprocess to the data A(k) of a k-th pixel of the first image after thefiltering process. Next, the data B(k-s1) is subtracted from the dataA(k) and absolute values of subtraction results are produced. Then thetotal sum of the produced absolute values in an area W corresponding tothe focus detection area is calculated as the correlation value COR(s1).The amount of correlation may be calculated for each line, and added upover several lines for each amount of shift, as required.

Next, the system control unit 50 produces an image displacement p1,which is a real-valued amount of shift with which the correlation valuebecomes smallest, by subpixel operation from the correlation value. Thesystem control unit 50 then multiplies the calculated image displacementp1 with a conversion coefficient K1 that corresponds to an image heightof the focus detection area, an F value of the imaging lens(image-forming optical system; imaging optical system), and an exitpupil distance, to produce the defocus amount.

At step S7, the system control unit 50 drives the focus lens based onthe defocus amount detected (calculated) at step S6. When the detecteddefocus amount is smaller than a predetermined value, the focus lensneed not necessarily be driven.

At step S8, the system control unit 50 performs the processes started atsteps S1 to S4 (imaging, live view display, line-of-sight detection,gaze position display, and focus detection). Focus detection isperformed in the same manner as that of step S6 (focus detection usingthe line-of-sight information). The process of step S8 may be performedin parallel with the process of step S7 (driving of the focus lens). Thefocus detection area may be changed based on a change in the live viewdisplay (captured image) or a change in the gaze position.

At step S9, the system control unit 50 determines whether or not thesignal SW2 (second shutter switch 64 ON; instruction to shoot;fully-pressed state of the shutter button 61) has been detected. Thesystem control unit 50 advances the process to step S10 if it determinesthat the signal SW2 has been detected, and returns the process to stepS5 if it determines that the signal SW2 has not been detected.

At step S10, the system control unit 50 determines whether or not thecaptured image is to be recorded (whether the image is to be shot). Thesystem control unit 50 advances the process to step S300 if itdetermines that captured image is to be recorded, and advances theprocess to step S400 if it determines that the captured image is not tobe recorded. In this embodiment, continuous shooting (successiveshooting) is started by the long press of the second shutter switch 64,and the processes of shooting (recording of captured image) and focusdetection are switched over during the continuous shooting. Theprocesses may be switched every time an image is captured such thatshooting and focus detection are performed alternately. The processesmay be switched such that focus detection is performed every severaltimes of shooting (e.g., three times). This way, focus detection can beperformed favorably without significantly reducing the number of imagestaken per unit time.

At step S300, the system control unit 50 executes a shooting subroutine.The shooting subroutine will be described in detail later. After stepS300, the process is returned to step S9.

At step S400, similarly to step S8, the system control unit 50 performsthe processes started at steps S1 to S4 (imaging, live view display,line-of-sight detection, gaze position display, and focus detection).The display period and display update rate (interval) of capturedimages, display lag and so on at step S400 are different from those ofstep S8 because of the frame rate of the continuous shooting (shootingframe rate) and the process of generating images to be recorded(recorded images) from captured images. The process is returned to stepS9 after step S400.

The user's gaze position is considerably affected when the displayperiod, display update rate (interval), or display lag of the capturedimage undergo a change. In this embodiment, statistical methods ofprocessing the gaze position or controlling the line-of-sight detectiontiming are changed in a favorable manner in accordance with such achange in the display state considering that errors occur in thedetected gaze position. This way, the gaze position can he acquiredaccurately (favorably) irrespective of the change in the display state.The acquired gaze position (line-of-sight information) is used for thedisplay of the gaze position, setting of a focus detection area, andlinking with an object area, as mentioned above. More details will begiven later.

As described above, if the signal SW1 is not detected at step S5, theprocess goes to step S11. At step S11, the system control unit 50determines whether or not there has been an instruction (operation) toend the shooting process. An ending instruction is, for example, aninstruction to change the mode of the main body 100 from the shootingmode to other modes, or an instruction to turn off the main body 100.The system control unit 50 ends the shooting process of FIG. 4 if itdetermines that there has been an ending instruction, and returns theprocess to step S5 if it determines that there has not been an endinginstruction.

Next, the shooting subroutine executed at S300 of FIG. 4 will bedescribed in detail with reference to FIG. 5. FIG. 5 is a flowchart ofthe shooting subroutine according to the embodiment.

At step S301, the system control unit 50 executes exposure control anddetermines shooting conditions (such as shutter speed, aperture value,and shooting sensitivity). Any known technique may he used to executethe exposure control, for example, based on the brightness informationof the captured image. The system control unit 50 controls the operationof the diaphragm 102 and shutter 101 (mechanical shutter) based on thedetermined aperture value and shutter speed. The system control unit 50controls the shutter 101 to accumulate a charge in the image sensor 22for a period in which the image sensor 22 is to he exposed (exposureperiod).

At step S302 after the exposure period has lapsed, the system controlunit 50 acquires (reads out) the captured image for shooting a stillimage from the image sensor 22. The system control unit 50 also acquires(reads out) a focus detection image, which is one of the first image andthe second image that are the pair of stereoscopic images in the focusdetection area, from the image sensor 22. The focus detection image isused for detecting a focus state of an object when the recorded image(shot image; image recorded based on the captured image) is reproduced.To reduce the amount of data of the focus detection image, an image witha smaller area than the captured image, or an image having a lowerresolution than the captured image may be acquired as the focusdetection image. The other one of the first image and the second imagecan be obtained by calculating a difference between one of the firstimage and the second image and the captured image. In this embodiment,the captured image and one of the focus detection images are acquired(read out) and recorded, while the other focus detection image iscalculated. The following image processing (processing of images) isapplied to the captured image and one of the focus detection image thusacquired.

At step S303, the system control unit 50 controls the image processingunit 24 to apply defective pixel interpolation (correction) to theimages acquired at step S302. At step S304, the system control unit 50controls the image processing unit 24 to apply other image processing tothe images after the defective pixel interpolation at step S303. Otherimage processing includes demosaicing (color interpolation), whitebalancing, gamma correction (gradation correction), color conversion,edge enhancement, encoding, and so on. At step S305, the system controlunit 50 records the images processed at steps S303 and S304 (capturedimage for shooting a still image, and one of the focus detection images)in the memory 32 as an image data file.

At step S306, the system control unit 50 links characteristicsinformation of the main body 100 to the recorded image (captured image)recorded at step S305 and records the same in the memory 32 (and in thememory in the system control unit 50). The characteristics informationof the main body 100 include the following, for example:

-   Information on shooting conditions (such as aperture value, shutter    speed, and shooting sensitivity)-   Information on image processing applied by the image processing unit    24-   Information on sensitivity distribution of the image sensor 22-   Information on vinetting caused by light beams inside the main body    100-   Information on distance from the attachment surface between the main    body 100 and the lens unit 150 to the image sensor 22-   Information on production errors

Since the sensitivity distribution is dependent on the on-chip microlens and opts-electronic conversion units, the information relating tothese components may be recorded as information on sensitivitydistribution. Information indicative of the sensitivity in accordancewith the positions at predetermined distances from the image sensor 22on the optical axis may be recorded as information on sensitivitydistribution. Information indicative of changes in sensitivity relativeto the changes in the incident angle of light may be recorded asinformation on sensitivity distribution.

At step S307, the system control unit 50 links characteristicsinformation of the lens unit 150 to the recorded image recorded at stepS305 and records the same in the memory 32 (and in the memory in thesystem control unit 50). The characteristics information of the lensunit 150 includes, for example, exit pupil information, frameinformation, focal distance information during shooting, F-numberinformation during shooting, aberration information, production errorsinformation, object distance information linked to the focus lensposition during shooting, and so on.

At step S308, the system control unit 50 records image-relatedinformation about the recorded image recorded at step S305 in the memory32 (and in the memory in the system control unit 50). The image-relatedinformation includes, for example, information on focus detectionoperation before the shooting (recording), object movement information,information on the accuracy of focus detection operation, and so on.

At step S309, the system control unit 50 displays the recorded imagerecorded at step S305 in the display unit 28 (preview display). Thisallows the user to quickly check the recorded image. While the image forrecording at step S305 is generated by applying various processes suchas steps S303 and S304, the image for preview display at step S309 mayhe generated without these various processes since it is an image for aquick check. If an image for preview display is to be generated withoutthese various processes, the time lag between exposure and display canbe shortened by performing the preview display at step S309 in parallelwith the processes from step S303 onwards.

Next, the process of making adjustments in line-of-sight detection,including change of statistical methods of processing the gaze position(line-of-sight information) or controlling the line-of-sight detectiontiming, will he described with reference to FIG. 6. FIG. 6 is aflowchart of the process of making adjustments in line-of-sightdetection according to the embodiment. The process of FIG. 6 is startedupon step S4 in FIG. 4 being carried out, and repeated in parallel withthe processes from step S4 onwards.

At step S201, the system control unit 50 acquires information of thegaze position (line-of-sight information) detected by the line-of-sightdetection unit 701.

At step S202, the system control unit 50 acquires the live view settinginformation at the timing when the process of step S201 was carried out(timing when the gaze position was detected). The live view settinginformation is information such as the display period, display updaterate (interval), or display lag of the captured image (frame) in thelive view display. In the camera system of this embodiment, the liveview setting may affect the detected gaze position and may cause adisplacement (misalignment or variation) relative to the user's intendedposition. Therefore, in this embodiment, change of statistical methodsof processing the gaze position or controlling the line-of-sightdetection timing is performed, in accordance with the live view settinginformation. The reasons why the live view setting may causedisplacement will be explained later.

At step S203, the system control unit 50 processes the line-of-sightinformation acquired at step S201 based on the live view settinginformation acquired at step S202. The processing may include weightedcombination of a plurality of lines of sight each corresponding to aplurality of timings (smoothing process; filtering process), a processof thinning successively detected gaze positions, and change of thenumber of sets of line-of-sight information to be used for determinationof a gaze area (sample number). The number of sets of line-of-sightinformation can also be called the length of period in whichline-of-sight information to be used for determination of a gaze area isacquired. In this embodiment, first line-of-sight information and secondline-of-sight information are generated by different processing steps(statistical methods). The processing at step S203 will be described indetail later.

At step S204, the system control unit 50 performs a process based on theline-of-sight information generated by the processing (firstline-of-sight information and second line-of-sight information). Thefirst processed line-of-sight information is used for the display of thegaze position and the second processed line-of-sight information is usedfor the setting of the focus detection area.

At step S205, the system control unit 50 determines whether or notchange of the timing of the line-of-sight detection (sample timing)needs as the change of statistical methods. Specifically, the systemcontrol unit 50 determines whether or not there has been a change in thelive view setting information (such as display update rate and displaylag). In the shooting process of FIG. 4, the display update rate anddisplay lag change in the transition from the pre-shooting state tocontinuous shooting. If the system control unit 50 determines that thetiming of the line-of-sight detection needs to be changed, i.e., if itdetermines that there has been a change in the live view settinginformation, the system control unit 50 advances the process to stepS206. On the other hand, if the system control unit 50 determines thatthe timing of the line-of-sight detection need not be changed, i.e., ifit determines that there has been no change in the live view settinginformation, the system control unit 50 ends the process of makingadjustments in line-of-sight detection of FIG. 6. As mentioned above,the process of making adjustments in line-of-sight detection isperformed in cycles. Even though it ends here, it is started again fromstep S201.

At step S206, the system control unit 50 changes the timing of theline-of-sight detection. The process at step S206 is a process forchanging the timing of line-of-sight detection for enabling acquisitionof line-of-sight information that matches the user's intention when itis hard for the user to see the vicinity of the target object due to asmall display update rate or a large display lag. The process at stepS206 will he described in detail later.

After the live view setting information has been acquired, there is norestriction on the order of the processes of steps S205 and S206 andother processes. Steps S205 and S206 may be carried out at any time.Alternatively, steps S205 and S206 may be performed in parallel withother processes.

Next, the reason why the first line of sight information and the secondline-of-sight information are generated by different processing steps(different generating methods; different statistical methods) in theprocess of step S203 of FIG. 6 will be described with reference to FIG.7A and FIG. 7B. FIG. 7A and FIG. 7B illustrate one example of a scenebeing shot in which the live view image is updated at a constant displayupdate rate from frame F1 to frame F5. The display update rate is, forexample, 60 fps or 120 fps. Namely, the interval of updating the liveview image displayed in the display unit 28 is 1/60 second or 1/120second, for example. FIG. 7A and FIG. 7B show five frames F1 to F5 inchronological order as the screen displayed in the display unit 28. Ineach frame, items W1 to W5 overlapping the live view image indicateareas of the detected object. Since the object is close up, the headarea is being detected.

In each frame, items P1 to P5 and P11 to P15 overlapping the live viewimage indicate the gaze positions. Items P1 to P5 in FIG. 7A are basedon the second line-of-sight information, and items P11 to P15 in FIG. 7Bare based on the first line-of-sight information. Item P1, for example,indicating the gaze position of the user looking at the frame F1, wouldbe displayed only after the line-of-sight detection process and theprocessing, but this delay in display caused by the detection processand the processing is not taken into consideration and item P1 is shownanyway in FIG. 7A. The delay in display caused by the detection processand the processing is not taken into consideration with regard to otheritems indicating the gaze position in FIG. 7A and FIG. 7B.

In each frame, items Pd1 to Pd5 and Pd11 to Pd15 overlapping the liveview image indicate the gaze positions, in a more visible form thanitems P1 to P5 and P11 to P15. Items Pd1 to Pd5 HG 7A are based on thesecond line-of-sight information, and items Pd11 to Pd15 in FIG. 7B arebased on the first line-of-sight information.

The shapes of the various items described above are not limited to thoseillustrated (broken-line square, cross, one-dot chain line circle). Thegaze position may be indicated with only one of items P1 to P5 and P11to P15, and one of items Pd1 to Pd5 and Pd11 to Pd15.

Referring to FIG. 7A, one case where the second line-of-sightinformation is used will be described. The second line-of-sightinformation is generated by a processing step that generally maintainsthe detected gaze position as it is. Therefore, the second line-of-sightinformation can favorably be used thr a process that requiresinstantaneity; in this embodiment, it is used for the setting of a focusdetection area. The predetermined process to be carried out on the basisof the second line-of-sight information is not limited to the setting ofa focus detection area and may be any process that requiresinstantaneity. The predetermined process to be carried out on the basisof the first line-of-sight information is not limited to the display ofthe gaze position, either. Simply, the first line-of-sight informationand the second line-of-sight information are used for differentpredetermined processes. An acquisition method of the secondline-of-sight information will be described later.

Using the second line-of-sight information for the setting of a focusdetection area enables favorable tracking of an object and allows anarea of this object to be set as the focus detection area, for example.In FIG. 7A, items P1 to P5 indicating the gaze position are each locatedinside items W1 to W5 indicating the object area, so that the object(head) associated with items W1 to W5 is being tracked throughout fromframe F1 to frame F5. Accordingly, the area of the object (head)associated with items W1 to W5 is being set as the focus detection areathroughout from frame F1 to frame F5.

On the other hand, when the second line-of-sight information is used forthe display of the gaze position, the gaze position changes largely ineach frame as illustrated by items Pd1 to Pd5, i.e., the gaze positioncannot be displayed with good visibility. This phenomenon occurs becauseit is hard for the user to keep gazing at the same point of an object(e.g., the person's pupil) so that the gaze position varies.Specifically, this phenomenon is caused by inevitable variations in thegaze position even though the user is gazing ata fixed point, andvariations in the gaze position caused by viewing a moving object.

Referring to FIG. 7B, one case where the first line-of-sight informationis used will be described. The first line-of-sight information isgenerated by a processing step that reduces the change in theline-of-sight information caused by a change in the line of sight.Namely, this processing makes the change in the first line-of-sightinformation smaller than the change in the second line-of-sightinformation relative to a change in the line of sight. An acquisitionmethod of the first line-of-sight information will be described later.In FIG. 7B, because the first line-of-sight information is used for thedisplay of the gaze position, the position of items Pd11 to Pd15 variesless than the position of items Pd1 to Pd5 in FIG. 7A, i.e., the gazeposition is being displayed with good visibility. This way, the gazeposition can be displayed with good visibility by using the firstline-of-sight information.

Next, the reasons why the change of statistical methods of processingthe line-of-sight information (step S203 of FIG. 6) or controlling theline-of-sight detection timing (step S206 of FIG. 6) may be necessarywill be described with reference to FIG. 8A and FIG. 8B. FIG. 8A andFIG. 8B illustrate an example of one scene being shot. FIG. 8A showsfifteen frames F101 to F115 in chronological order as the screendisplayed in the display unit 28. FIG. 8B shows fifteen frames F201 toF215 in chronological order as the screen displayed in the display unit28. In each frame, items W101 to W115 and W201 to W215 overlapping thelive view image indicate areas of a detected object. As the objectapproaches the viewer, the detected area changes from the entire body tothe upper body and to the head.

In each frame, items P101 to P115 and P201 to P215 overlapping the liveview image indicate the gaze positions. Items P101 to P115 and P201 toP215 are based on unprocessed line-of-sight information. Item P101, forexample, indicating the gaze position of the user looking at the frameF101, would be displayed only after the line-of-sight detection process,but this delay in display caused by the detection process is not takeninto consideration in FIG. 8A and item P101 is shown anyway.

FIG. 8A illustrates a case in which the live view image is updated at aconstant display update rate from frame F101 to F115. The display updaterate is, for example, 60 fps or 120 fps.

FIG. 8B illustrates a case in which there is a change in display updaterate during the period from frame F201 to frame F215. The live viewimage stops to be updated because of the change in the display updaterate so that the same live view image as that of frame F209 is displayedduring the period from frame F209 to F211. Similarly, the same live viewimage as that of frame F212 is displayed during the period from frameF212 to F214. This phenomenon can occur when the shooting process ofFIG. 4 is executed, for example. Specifically, the processes of steps S1to S9 of FIG. 4 are executed during the period from frame F201 to F209,in which the display update rate of the live view image is constant(e.g., 60 fps). After that, the processes from step S10 onwards of FIG.4 are executed, and after the transition into the continuous shootingstate the display update rate of the live view image changes (e.g., 20fps) as shown by frames F209 to F215. Acquisition of recorded imagesduring the continuous shooting takes a relatively long processing timeas compared to acquisition of live view images because of the readingout of images from the image sensor and the image processing applied tothe read-out images. Therefore the display update rate is reduced duringthe continuous shooting, resulting in the state shown in FIG. 8B.

In FIG. 8A, both the interval of updating the live view image displayedin the display unit 28 (display update interval) and the delay time(display lag time) between acquisition of the live view image (imaging)and display thereof in the display unit 28 are constant. Therefore,stable line-of-sight detection is possible wherein the distance betweenthe object the user wishes to watch (person) and the user's gazeposition is relatively short. Even so, the gaze position varies, becauseit is hard for the user to keep gazing at the same point of an object(e.g., the person's pupil). Specifically, there are inevitablevariations in the gaze position even though the user is gazing at afixed point, and variations in the gaze position caused by viewing amoving object.

Therefore, in this embodiment, statistical methods of processing theline-of-sight information (step S203 in FIG. 6) or controlling thetiming of line-of-sight detection (step S206 in FIG. 6 are changed suchthat a gaze position varies less. How the statistical methods arechanged will be described later.

In FIG. 8B, the object position changes largely from frame F211 to frameF212 due to the low display update rate. In such a case, the user maynot be able to move the gaze quickly enough so that there may occur astate in which the user is gazing at a point far away from the object(item P212 indicating the gaze position). The user moves the gaze afterthat so that the gaze position gradually comes closer to the object inframes F213 and F214 (items P213 and P214 indicating the gaze position).As demonstrated above, depending on the display update rate, the user'sgaze position may be distanced from the object (the area the userintends to look at). If the focus detection area is set using the gazeposition in such a state, e.g., the state of frame F212, the focusdetection area cannot be set as intended by the user, and an in-focusstate as intended by the user cannot be achieved.

Therefore, in this embodiment, the change of statistical methods ofprocessing the line-of-sight information or controlling the timing ofline-of-sight detection is performed, based on the display update rate,such that a gaze position that does not match the user's intention isnot used for the setting of the focus detection area. The change ofstatistical methods will be described later.

While it was mentioned above that the display lag time in FIG. 8B wasthe same as that of FIG. 8A, the display lag time may change by thetransition into the continuous shooting. Specifically, acquisition ofrecorded images during the continuous shooting takes a relatively longprocessing time as compared to acquisition of live view images becauseof the reading out of images from the image sensor and the imageprocessing applied to the read-out images. For this reason the displaylag time tends to be long during the continuous shooting. A prolongeddisplay lag time causes the user to feel strange because the display isdelayed relative to the operation (e.g., panning) performed to the mainbody 100. This results in variation in the users gaze position. Takingsuch a case into consideration, the change of statistical methodsprocessing the line-of-sight information or controlling the timing ofline-of-sight detection may be performed, based on the display lag time,such that a gaze position that does not match the user's intention isnot used for the setting of the focus detection area. The change ofstatistical methods may be performed based on one of the display updaterate and the display lag time, or may be performed based on both.

Next, the processing of line-of-sight information will be described withreference to FIG. 9. FIG. 9 is one example of a timing chart of liveview display and line-of-sight detection along with the processing.

The upper part of FIG. 9 shows the types and display periods of liveview images. In FIG. 9, images D1 to D12 are shown in sequence. ImagesD1 to D5 are for the live view display (LV) started at step S3 of FIG.4, which are updated and displayed at 60 fps, for example. The signalSW2 is detected during the display of image D5, and the process goes tostep S10 of FIG. 4. Form then onwards, the recorded image acquired atstep S300 (images D7 and D9) and the image acquired at step S400 (imagesD8 and D10 for focus detection) are displayed alternately. Since thedisplay of recorded images requires time as mentioned above, image D6 isnot updated (frozen) like images D1 to D5, i.e., the display period ofimage D6 is extended as compared to the display period of images D1 toD5. The signal SW2 stops being detected during the display of image D10,and the display is returned to the live view started at step S3 of FIG.4 (images D11 and D12).

The middle part of FIG. 9 illustrates a processing step for obtainingthe second line-of-sight information, where black dots indicateline-of-sight detection timings E1 to E11 and acquisition timings A1 toA11 of the second line-of-sight information.

Line-of-sight detection is performed by the line-of-sight detection unit701 in parallel with shooting and live view display. In FIG. 9,line-of-sight detection is performed at a constant rate irrespective ofwhether continuous shooting is being used. Specifically, the gazeposition is detected at a rate of 30 times/sec. Only, the detectioninterval between the line-of-sight detection timings E10 and E11 isdifferent from the other detection interval, due to the synchronizingprocess of synchronizing the line-of-sight detection timing E11 with thedisplay of image D12.

The gaze positions (unprocessed line-of-sight information) detected atthe acquisition timings A1 to A3 and A11 of the second line-of-sightinformation are assumed to be free of a large error because they areacquired during the live view display at 60 fps. Therefore, as indicatedby the arrows pointing at these acquisition timings A1 to A3 and A11,the information of the gaze position detected at line-of-sight detectiontimings E1 to E3 and E11 is acquired as it is as the secondline-of-sight information. At acquisition timings A4 to A10, asindicated by the arrows pointing at these acquisition timings,information of an average of a plurality of gaze positions is acquiredas second line-of-sight information. The plurality of gaze positions forobtaining second line-of-sight information are, for example, apredetermined number of gaze positions that have been obtained until theacquisition timing of this second line-of-sight information.Specifically, at acquisition timing A4, the information of an average ofthe gaze position detected at line-of-sight detection timing E3 and thegaze position detected at line-of-sight detection timing E4 is acquiredas the second line-of-sight information. As mentioned above, when thedisplay update rate is lowered, or the display lag time is prolonged,the user is not gazing at the intended position (such as the object),because of which there is an error in the detected gaze position(mismatch between the user's intended object position and the detectedgaze position). Therefore, in FIG. 9, the information of the detectedgaze position is not used as the second line-of-sight information as itis, but is subjected to processing such as an averaging process(weighted combination). Thereby, the influence of an error in the gazeposition can be reduced.

The lower part of FIG. 9 illustrates a processing step for obtaining thefirst line-of-sight information, where black dots indicate line-of-sightdetection timings E1 to E11 and acquisition timings A1′ to A11′ of thefirst line-of-sight information.

Unlike the processing for obtaining the second line-of-sight informationdescribed above, information of an average of a plurality of gazepositions is acquired as the first line-of-sight information at all theacquisition timings A1′ to A11′, as indicated by the arrows pointing atthese acquisition timings. The plurality of gaze positions for obtainingone first line-of-sight information are, for example, a predeterminednumber of gaze positions that have been obtained until the acquisitiontiming of this first line-of-sight information. A larger number of gazepositions are used for acquiring the first line-of-sight informationthan for the second line-of-sight information so that the gaze positionson the basis of the first line-of-sight information will be displayedwith good visibility. Specifically, at acquisition timing A4′, theinformation of an average of three gaze positions detected atline-of-sight detection timings E2, E3, and E4 is acquired as the firstline-of-sight information. As mentioned above, when the display updaterate is lowered, or the display lag time is prolonged, the user may notbe gazing at the intended position (such as the object), and there maybe an error in the detected gaze position (mismatch between the user'sintended object position and the detected gaze position). Therefore, inFIG. 9, the information of the detected gaze position is not used as thefirst line-of-sight information as it is, but is subjected to processingsuch as an averaging process (weighted combination). This reduces theinfluence of an error in the detected gaze position.

Although not shown in FIG. 9, in the case where a blackout image isdisplayed during the continuous shooting, the gaze position detectedduring the display of the blackout image may be excluded (removed) fromthe weighted combination such as averaging.

In FIG. 9, to acquire the second line-of-sight information, theaveraging process is performed during the continuous shooting and notbefore the start of the continuous shooting, while, to acquire the firstline-of-sight information, the averaging process is constantlyperformed. In the averaging process, always the same number of gazepositions are used. The processing for acquiring the first or secondline-of-sight information is not limited to this. An error in the gazeposition tends to be large during the continuous shooting as compared tobefore or after the continuous shooting, as mentioned above. Therefore,the averaging process may be performed using a first number of gazepositions before or after the continuous shooting, and the averagingprocess may be performed using a second number of gaze positions largerthan the first number during the continuous shooting. A smaller numberof gaze positions used in the averaging process allows for acquisitionof (processed) line-of-sight information with more value given toinstantaneity (less delay) than error reduction, while, a lame number ofgaze positions used in the averaging process allows for acquisition ofline-of-sight information with more value on error reduction. Namely,the difference in the statistical methods may include a difference inthe number (sample number) of line-of-sight information sets to be usedfor the averaging process.

While FIG. 9 illustrates an example of performing an averaging process(weighted combination in which the plurality of gaze positions arecombined with the same weight), the plurality of gaze positions need notnecessarily be weighted the same. For example, a gaze position detectedat a timing with a large difference from the current time point may belargely different from the current gaze position and the user's intendedgaze position. Therefore, a gaze position detected at a timing with alarge difference from the current time point may be assigned a smallerweight in the weighted combination. This way, (processed) line-of-sightinformation with less error can be obtained. The balance in the weightor the number of gaze positions used for the weighted combination may bevaried depending on whether the continuous shooting is being used ornot. Namely, the difference in the statistical methods may include adifference in the balance of weight in the weighted combination, and anumber (sample number) of line-of-sight information sets to be used forthe weighted combination.

Next, a processing procedure different from that of FIG. 9 will bedescribed with reference to FIG. 10. While FIG. 9 illustrates an exampleof processing that includes an averaging process, FIG. 10 illustrates anexample of processing that includes a thinning process. Namely, FIG. 10illustrates an example in which the difference in the statisticalmethods includes a difference in the thinning process. Similarly to FIG.9, FIG. 10 is one example of a timing chart of live view display andline-of-sight detection along with the processing. The upper part ofFIG. 10 is the same as the upper parts of FIG. 9, and the line-of-sightdetection timings E1 to E11 (middle and lower parts) of FIG. 10 is thesame as in FIG. 9. FIG. 10 differs from FIG. 9 in the acquisitiontimings of second line-of-sight information (middle part) and theacquisition timings of first line-of-sight information (lower part).

In FIG. 10, as shown in the middle part, second line-of-sightinformation is obtained by removing the gaze positions detected atline-of-sight detection timings E5 and E8 (unprocessed line-of-sightinformation). Specifically, at each of the acquisition timings C1 to C4,C6, C7, and C9 to C11 corresponding to the line-of-sight detectiontimings E1 to E4, E6, E7, and E9 to E11, the information of the gazeposition detected at the corresponding line-of-sight detection timing isacquired as the second line-of-sight information.

The gaze position detected immediately after the displayed image hasbeen switched in a state where the display update rate is low (displayperiod of images D6 to D10) contains a large error as with the frameF212 of FIG. 8E. It is therefore preferable to perform a thinningprocess so that such a gaze position (with a large error) will not heused. In FIG. 10, the line-of-sight detection timing E5 is immediatelyafter the displayed image is switched from image D6 to image D7, and theline-of-sight detection timing E8 is immediately after the displayedimage is switched from image D8 to image D9. Accordingly, the gazepositions detected at the line-of-sight detection timings E5 and E8 inthe middle part of FIG. 10 (unprocessed line-of-sight information) areremoved. The thinning process is a process of removing gaze positionsdetected during a period equal to or longer than a first time or andequal to or less than a second time since the switching of the displayedimage when the display update rate is equal to or less than apredetermined value. The thinning process may he a process of removinggaze positions detected during a period within a predetermined time fromthe switching of the displayed image when the display update rate isequal to or less than a predetermined value.

In FIG. 10, as shown in the lower part, the first line-of-sightinformation is acquired by removing the gaze position detected atline-of-sight detection timing E5 (unprocessed line-of-sightinformation). Specifically, at each of the acquisition timings C1′ toC4′ and C6′ to C11′ corresponding to the line-of-sight detection timingsE1 to E4 and E6 to E11, the information of the gaze position detected atthe corresponding line-of-sight detection timing is acquired as thefirst line-of-sight information. While the gaze position is removed onlyat the start of the continuous shooting in the illustrated example, thegaze position detected at line-of-sight detection timing E8 mayadditionally be removed as with the acquisition of the secondline-of-sight information.

The condition in which the thinning process is activated is not limitedto the display update rate being equal to or less than a predeterminedvalue. As mentioned above, when the object moves largely at the sametime as the update of the display, the detected gaze position(unprocessed line-of-sight information) contains an error. Accordingly,the thinning process may be performed when the display update rate isequal to or less than a predetermined value, and the detected amount ofmovement of the object position is large. By changing gaze positionsthat are to he removed, the second line-of-sight information for thesetting of a focus detection area and the first line-of-sightinformation for the display of the gaze position can both be acquired ina favorable manner.

In FIG. 10, the second line-of-sight information acquired at acquisitiontiming C6 or the first line-of-sight information acquired at acquisitiontiming C6′ may be linked to image D7 as the detected line-of-sightinformation. The original information of these processed line-of-sightinformation (first line-of-sight information and the secondline-of-sight information) is acquired at the line-of-sight detectiontiming E6 immediately after the displayed image has been switched fromimage D7 to image D8 (within a first time). Taking into considerationthe time the user requires for recognition (time lag between visualperception and recognition by the user), these processed line-of-sightinformation may be regarded as the line-of-sight information detectedduring the display of image D7. Similarly, the second line-of-sightinformation acquired at acquisition timing C9 or the first line-of-sightinformation acquired at acquisition timing C9′ may be linked to image D9as the detected line-of-sight information.

The difference between the thinning process for acquiring the firstline-of-sight information and the thinning process for acquiring thesecond line-of-sight information can also be regarded as the differencebetween the acquisition timing of the first line-of-sight information(sample timing) and the acquisition timing of the second line-of-sightinformation (sample timing). Namely, the difference in the statisticalmethods may include a difference in sample timing.

Next, as an example of changing the statistical method, the control ofthe line-of-sight detection timing is described with reference to FIG.11. FIG. 11 is one example of a timing chart of live view display andline-of-sight detection. The upper part of FIG. 11 is the same as theupper part of FIG. 9.

The middle part of FIG. 11 illustrates line-of-sight detection timingsE1 to E4 and F9 in a state in which shooting including continuousshooting is not being performed. In a state in which shooting includingcontinuous shooting is not being performed, line-of-sight detection isperformed at 30 times/sec, in sync with the live view display.

The lower part of FIG. 11 illustrates line-of-sight detection timingsE5′ to E8′. The gaze positions are detected at a changed detection rateso as to be in sync with the live view display of the continuousshooting (display of images D7 to D10). The synchronizing process (ofsynchronizing the line-of-sight detection timing with the live viewdisplay) is performed again in the transition from the state where noshooting is performed into continuous shooting so as to obtaininformation that is effective as the user's line-of-sight information(with less error). Specifically, the line-of-sight detection timing E5′is controlled to match the latter half of the display period of theimage D7. Similarly, the line-of-sight detection timings E6′ to E8′ arecontrolled based on the display periods of the images D6 to D8.

While one example has been described with reference to FIG. 9 to FIG. 11in which the line-of-sight information is processed or the timing ofline-of-sight detection is controlled separately in this embodiment,these processes may be used at the same time. Also, while one examplehas been described in which the mismatch (error) between the detectedgaze position and the user's intended position occurs due to the displayupdate rate or display lag of the live view display, there are othersituations where the error may occur. For example, the object in acaptured image may be blurred, or hardly visible due to darkness becauseof a change in the focus state, a change in the aperture condition,exposure settings or a change thereof. In such a case, too, the errormay be large, so carrying out the processes described with reference toFIG. 9 to FIG. 11 will be effective.

[Variation Example]

In the embodiment described above, one example was described in whicherrors in the gaze position, which occur in a transition from a liveview display state before the shooting of a still image into a live viewdisplay state of continuous shooting, were taken into account. Errorsmay occur in the detected gaze position in other situations. Forexample, the error in the detected gaze position increases depending onthe display update rate or display lag of the live view display duringthe recording of a movie (shooting of a movie). One example of takingerrors in the gaze position during movie recording into account will bedescribed with reference to FIG. 12A and FIG. 12B. FIG. 12A and FIG. 12Bare one example of a timing chart of live view display periods andline-of-sight detection timings during the recording of a movie.

In FIG. 12A, a movie is recorded at 60 fps, and line-of-sight detectionis performed at 30 times/sec (line-of-sight detection timings E1 to E7).The live view display is performed at 60 fps in sync with the movierecording (images D1 to D14). In live view display at 60 fps, the objectin the live view image moves smoothly, so that the error in the user'sgaze position is small. Therefore, in FIG. 12A, line-of-sight detectionis performed in the middle of the display period of one live view image(such as image D1 or image D3).

In FIG. 12B, a movie is recorded at 30 fps, and line-of-sight detectionis performed also at 30 times/sec (line-of-sight detection timings E1 toE7). The live view display is performed at 30 fps in sync with the movierecording (images D1 to D7). In live view display at 30 fps, the objectin the live view image moves less smoothly, so that the error in theuser's gaze position is large. Therefore, in FIG. 12B, line-of-sightdetection is performed in the latter half of the display period of onelive view image (such as image D1 or image D2). This allows foracquisition of line-of-sight information with less error in the gazeposition.

Executing similar control based on a display lag in the live viewdisplay during the recording of a movie also allows for acquisition ofline-of-sight information that matches the user's intention. With theline-of-sight detection timing synchronized with the live view display,the longer a reference time that is the interval of updating the imagedisplayed in the display unit 28 or the delay time between acquisitionof an image and display thereof in the display unit 28, the longer theinterval of successive detection of gaze positions. In this case,controlling the line-of-sight detection timing, when the reference timeis longer than a predetermined threshold, such that the gaze position isdetected at a timing in the latter half of a period of displaying oneimage in the display unit 28 will allow for acquisition of line-of-sightinformation that matches the user's intention.

The method of reducing errors in line-of-sight detection is not limitedto the control of the line-of-sight detection timing. As mentioned inthe embodiment above, the number of samples in the smoothing process(weighted combination) may be increased, or samples assumed to have alarge error may be removed, to acquire line-of-sight information withless error. The control of line-of-sight detection timing, weightedcombination, thinning process, etc., may be performed in any suitablecombination.

In the example described in this embodiment, the acquired firstline-of-sight information is used for the display of the gaze position,and the acquired second line-of-sight information with highersensitivity than the first line-of-sight information is used for thesetting of the focus detection area during the shooting of a still imageor a movie. The ways in which the line-of-sight information is used(purposes of use) are not limited to these.

For example, the first line-of-sight information may be used forline-of-sight detection when selecting an icon shown on a menu screen orthe like in the display unit 28 and giving an operation instruction,while the second line-of-sight information with higher sensitivity thanthe first line-of-sight information may be used for line-of-sightdetection when selecting an object during the shooting of a still imageor a movie. This is because, generally, selection of an object that maylikely move dynamically requires instantaneity than selection of an iconthat stays still at the displayed location.

Even if the same gaze position is displayed and notifying, the firstline-of-sight information may be used with a first display frame rate,and the second line-of-sight information with higher sensitivity thanthe first line-of-sight information may be used with a second frame ratethat is higher than the first display frame rate. This is because, witha high display rate, the object is likely to dynamically change theposition more frequently so that instantaneity is desirable.

In the case of an user interface that allows selection of a menu iconshown in the display unit 28 based on a gaze position, the firstline-of-sight information may be used in a first display state and thesecond line-of-sight information with higher sensitivity than the firstline-of-sight information may be used in a second display state. Thesecond display state is a display state that is at least one of a statewith a fewer number of icons than in the first display state; a statewherein icons are spaced wide apart; and a state wherein icons are largein size. With a large number of icons, or icons spaced close together,or with small icons, higher instantaneity means a higher possibility ofa wrong position being selected due to movements such as saccades whenselecting an icon. Therefore, lowering the sensitivity in such a displaystate allows more stable menu selection.

When recording a movie (shooting a movie), each frame may be providedwith a record of line-of-sight information about the gaze of the user(photographer) in each frame. This enables automatic extraction andenlargement of an area the photographer was gazing at in a trimmingprocess or an enlarging process, or allows a trimmed area to be changedin accordance with the movement of the photographer's gaze position,during the editing of a movie. When linking line-of-sight informationwith a movie, it should be taken into consideration that there is amismatch (delay) between the timing of the display of the image in whichthe line-of-sight information was acquired and the timing of therecording, for links to be established accurately.

Adding line-of-sight information to a still image will enable a similartrimming process or image processing specifically designed for the areaof the gaze (such as correction of brightness or hue).

When recording line-of-sight information in association with a movie ora still image, information such as the detected gaze position, displayupdate rate, and display lag may also be recorded therewith. This willenable the processing of line-of-sight information and control ofline-of-sight detection timing as described in this embodiment to beperformed as post processing in a personal computer or the like insteadof in the imaging apparatus.

According to the present disclosure, processing can be performedfavorably based on results of line-of-sight detection.

Other Embodiments

Embodiment(s) of the present invention can also be realized by acomputer of a system or apparatus that reads out and executes computerexecutable instructions (e.g., one or more programs) recorded on astorage medium (which may also be referred to more fully as a‘non-transitory computer-readable storage medium’) to perform thefunctions of one or more of the above-described embodiment(s) and/orthat includes one or more circuits (e.g., application specificintegrated circuit (ASIC)) for performing the functions of one or moreof the above-described embodiment(s), and by a method performed by thecomputer of the system or apparatus by, for example, reading out andexecuting the computer executable instructions from the storage mediumto perform the functions of one or more int the above-describedembodiment(s) and/or controlling the one or more circuits to perform thefunctions of one or more of the above-described embodiment(s). Thecomputer may comprise one or more processors (e.g., central processingunit (CPU), micro processing unit (MPU)) and may include a network ofseparate computers or separate processors to read out and execute thecomputer executable instructions. The computer executable instructionsmay be provided to the computer, for example, from a network or thestorage medium. The storage medium may include, for example, one or moreof a hard disk, a random-access memory (RAM), a read only memory (ROM),a storage of distributed computing systems, an optical disk (such as acompact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™),a flash memory device, a memory card, and the like.

The embodiment described above is merely an example. Any configurationsobtained by suitably modifying or changing some configurations of theembodiment (including the orders of process steps) within the scope ofthe subject matter of the present invention are also included in thepresent invention. The present invention also includes otherconfigurations obtained by suitably combining various features of theembodiment.

While the present invention has been described with reference toexemplary embodiments, it is to be understood that the invention is notlimited to the disclosed exemplary embodiments. The scope of thefollowing claims is to be accorded the broadest interpretation so as toencompass all such modifications and equivalent structures andfunctions.

This application claims the benefit of Japanese Patent Application No.2020-026018, filed on Feb. 19, 2020, which is hereby incorporated byreference herein in its entirety.

What is claimed is:
 1. An electronic device comprising at least one memory and at least one processor which function as: an acquisition unit configured to acquire a first line-of-sight information and a second line-of-sight information generated by mutually different statistical methods as line-of-sight information relating to a line of sight of a user looking at a display surface; and a processing unit configured to perform first processing on a basis of the first line-of-sight information and second processing different from the first processing on a basis of the second line-of-sight information.
 2. The electronic device according to claim 1, wherein the acquisition unit generates the first line-of-sight information and the second line-of-sight information from a detection result of successively detected lines of sight.
 3. The electronic device according to claim 1, wherein a change in the first line-of-sight information relative to a change in the line of sight is less than a change in the second fine-of-sight information relative to the change in the line of sight.
 4. The electronic device according to claim 1, wherein the first line-of-sight information and the second line-of-sight information are each generated by processing that is able to include a weighted combination of a plurality of lines of sight corresponding to a plurality of timings respectively, and a method of the weighted combination for the first line-of-sight information is different from a method of the weighted combination for the second line-of-sight information.
 5. The electronic device according to claim 1, wherein the first line-of-sight information and the second line-of-sight information are each generated by processing that is able to include a thinning process on successively detected lines of sight, and a method of the thinning process for the first line-of-sight information is different from a method of the thinning process for the second line-of-sight information respectively.
 6. The electronic device according to claim 1, wherein the first line-of-sight information and the second line-of-sight information are each generated based on at least one of an interval of updating an image displayed on the display surface and a delay time between acquisition of the image and display thereof on the display surface.
 7. The electronic device according to claim 1, wherein the first line-of-sight information and the second line-of-sight information are each generated from a detection result of successively detected lines of sight, and the at least one memory and at least one processor further function as: a control unit configured to control timings of detecting the lines of sight on a basis of at least one of an interval of updating an image displayed on the display surface and a delay time between acquisition of the image and display thereof on the display surface.
 8. The electronic device according to claim 7, wherein the control unit controls timings of detecting the lines of sight such that the longer a reference time, which is the interval of updating an image displayed on the display surface or the delay time between acquisition of the image and display thereof on the display surface, the longer an interval, at which the line of sight is successively detected, and in a case where the reference time is longer than a threshold, the line of sight is detected at a timing in a latter half of a display period of one image on the display surface.
 9. The electronic device according to claim 1, wherein the first processing is control for displaying an image on a display surface and displaying a predetermined item at a position, determined based on the first line-of-sight information, on the display surface.
 10. The electronic device according to claim 1, wherein the display surface displays a captured image, and the second processing is processing for setting an area, where a focus point is detected, in the image.
 11. A control method of an electronic device, comprising: acquiring a first line-of-sight information and a second line-of-sight information generated by mutually different statistical methods as line-of-sight information relating to a line of sight of a user looking at a display surface; and performing first processing on a basis of the first line-of-sight information and second processing different from the first processing on a basis of the second line-of-sight information.
 12. A non-transitory computer readable medium that stores a program, wherein the program causes a computer to execute a control method of an electronic device, the control method comprising: acquiring a first line-of-sight information and a second line-of-sight information generated by mutually different statistical methods as line-of-sight information relating to a line of sight of a user looking at a display surface; and performing first processing on a basis of the first line-of-sight information and second processing different from the first processing on a basis of the second line-of-sight information. 